package com.smartHome.pojo.entity;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class User {
    @NotNull
    private Integer userId;//主键ID

    private String username;//用户名

    //@JsonIgnore
    private String password;//密码

    @NotEmpty
    @Email
    private String email;//邮箱

    private String avatar;//用户头像地址

    private LocalDateTime createTime;//创建时间

    private LocalDateTime updateTime;//更新时间
}
